package com.shwread.android.ui.dialog;

import android.content.Context;
import android.content.Intent;
import android.view.View;
import android.widget.Button;

import com.shwread.android.qysw.activity.ForgetPwdActivity;


public class AccountLockedDialog
        extends
        CommonDialog
{
	
	private Context context;
	
	public AccountLockedDialog(Context context) {
		super(context);
		this.context = context;
		
		tvText.setText("密码错误已达上限3次，请1小时后再试，或立即找回密码");
		((Button) vCancel).setText("取消");
		((Button) tvOk).setText("找回密码");
		vTitle.setVisibility(View.GONE);
	}
	
	
	protected void clickOk(View v) {
		super.clickOk(v);
		context.startActivity(new Intent(context, ForgetPwdActivity.class));
		dismiss();
	}
	
}
